//
//  UIImage+GIF.h
//  AFNetworking
//
//  Created by SY on 2019/7/30.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (GIFExtension)
+ (UIImage *)sy_animatedGIFNamed:(NSString *)name;

+ (UIImage *)sy_animatedGIFWithData:(NSData *)data;

- (UIImage *)sy_animatedImageByScalingAndCroppingToSize:(CGSize)size;

+ (float)sy_frameDurationAtIndex:(NSUInteger)index source:(CGImageSourceRef)source;
@end

NS_ASSUME_NONNULL_END
